import React from 'react'
import {Switch, Route} from 'react-router-dom'

// components
import SettingMain from "./components/SettingMain/SettingMain"
import PushSetting from "./components/PushSetting/PushSetting"
import About from "./components/About/About";
import PrivacyPolicy from "./components/PrivacyPolicy/PrivacyPolicy";
import Buffer from "./components/Buffer/Buffer";
import UserPolicy from "./components/UserPolicy/UserPolicy";

const SettingContainer = props => {
    const {match,} = props
    return (
        <Switch>
            <Route path={`${match.url}/`} exact component={SettingMain}/>
            {/*<Route path={`${match.url}/push`}  component={PushSetting}/>*/}
            <Route path={`${match.url}/about`}  component={About}/>
            <Route path={`${match.url}/privacy-policy`}  component={PrivacyPolicy}/>
            {/*<Route path={`${match.url}/buffer`} component={Buffer}/>*/}
            <Route path={`${match.url}/user-policy`} component={UserPolicy}/>
        </Switch>
    )
}

export default SettingContainer
